package com.vshining.cryptoki.jna.pkcs11t;

import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class CK_SKIPJACK_RELAYX_PARAMS extends Structure {
    NativeLong ulOldWrappedXLen;
    Pointer pOldWrappedX;
    NativeLong ulOldPasswordLen;
    Pointer pOldPassword;
    NativeLong ulOldPublicDataLen;
    Pointer pOldPublicData;
    NativeLong ulOldRandomLen;
    Pointer pOldRandomA;
    NativeLong ulNewPasswordLen;
    Pointer pNewPassword;
    NativeLong ulNewPublicDataLen;
    Pointer pNewPublicData;
    NativeLong ulNewRandomLen;
    Pointer pNewRandomA;

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(
                "ulOldWrappedXLen",
                "pOldWrappedX",
                "ulOldPasswordLen",
                "pOldPassword",
                "ulOldPublicDataLen",
                "pOldPublicData",
                "ulOldRandomLen",
                "pOldRandomA",
                "ulNewPasswordLen",
                "pNewPassword",
                "ulNewPublicDataLen",
                "pNewPublicData",
                "ulNewRandomLen",
                "pNewRandomA"
        );
    }
}
